<?php
class Core_field
{
	private $name;
	private $type;
	private $length;
	private $isPrimary;
	private $defaultValue;
	private $isAllowNull;
	private $isAutoIncrement;
	
	public function __construct($name, $isPrimary, $type, $length, $isAllowNull, $defaultValue, $isAutoIncrement)
	{
		$this->name = $name;
		$this->type = $type;
		$this->length = $length;
		$this->isPrimary = $isPrimary;
		$this->defaultValue = $defaultValue;
		$this->isAllowNull = $isAllowNull;
		$this->isAutoIncrement = $isAutoIncrement;
	}
	
	/**
	 * @return the $name
	 */
	public function getName() {
		return $this->name;
	}

	/**
	 * @return the $type
	 */
	public function getType() {
		return $this->type;
	}

	/**
	 * @return the $length
	 */
	public function getLength() {
		return $this->length;
	}

	/**
	 * @return the $isPrimary
	 */
	public function getIsPrimary() {
		return $this->isPrimary;
	}

	/**
	 * @return the $defaultValue
	 */
	public function getDefaultValue() {
		return $this->defaultValue;
	}

	/**
	 * @return the $isAllowNull
	 */
	public function getIsAllowNull() {
		return $this->isAllowNull;
	}

	/**
	 * @return the $isAutoIncrement
	 */
	public function getIsAutoIncrement() {
		return $this->isAutoIncrement;
	}
}